x86: add a common interface for cpu matching
authorWei Wang <wei.w.wang@intel.com>
Thu, 18 Jun 2015 14:07:40 +0000 (16:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 18 Jun 2015 14:07:40 +0000 (16:07 +0200)
commit12fb4a5ac037763713f373416af9f230fbe374ab
tree0b32ea857a8ab9b9eeae076cb4df25558c998e67
parent2d67a7a4d37a4759bcd7f2ee2d740497ad669c7d
x86: add a common interface for cpu matching

Add a common interface for matching the current cpu against an
array of x86_cpu_ids. Also change mwait-idle.c to use it.

Signed-off-by: Wei Wang <wei.w.wang@intel.com>
xen/arch/x86/cpu/common.c
xen/arch/x86/cpu/mwait-idle.c
xen/include/asm-x86/processor.h